package com.likl.springboot_22_task;

import java.util.Timer;
import java.util.TimerTask;

/**
 * ClassName:springboot_study
 * Description:
 *
 * @Create: 2024/7/16 16:27
 * @author: likl
 * @e-mail: likl1102@foxmail.com
 * @QQ: 2514927731
 */
public class TimerTaskApp {
    public static void main(String[] args) {
        Timer timer = new Timer();
        TimerTask task = new TimerTask() {
            @Override
            public void run() {
                System.out.println("fuck you!");
            }
        };
        timer.schedule(task,0,2000);
    }
}
